package cn.demoxy.model.entity;

import cn.demoxy.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @auther demo
 * @date 2022/5/20 9:24
 * 菜单表实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="DemoMenu对象", description="菜单权限表")
public class DemoMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单权限")
    private String permission;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "父菜单ID")
    private String parentId;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "菜单类型: 0:左菜单 1:按钮 2:接口资源")
    private String type;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @TableField(exist = false)
    @ApiModelProperty(value = "子级菜单")
    private List<DemoMenu> childrenMenus;




}